package cc.sbootd2.sbootd2web;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication
@EnableTransactionManagement//开启事务管理
@MapperScan("cc.sbootd2.sbootd2web.dao")//与dao层的@Mapper二选一写上
public class Sbootd2WebApplication {

	public static void main(String[] args) {
		SpringApplication.run(Sbootd2WebApplication.class, args);
	}
}
